<?php


namespace App\Http\Controllers\Api;
use App\Http\Controllers\BaseController;
use App\Models\Merchant;
use Dingo\Api\Http\Request;

class MerchantController extends BaseController
{

    public function store(Request $request) {
        $input = $request->input();
        $input['user_id'] = $this->getUserId();
        $info = Merchant::create($input);
        $id = $info->id;
        return $this->success($id);
    }

}

